/**
 * Created by Reeves on 2017/5/15.
 */
Template.postsNewList.helpers({
    posts: function () {
        return Posts.find({}, {sort: {submitted: -1}});
    }
});

Template.postsNewList.events({
    'click #newBtn': function (e, template) {
        Router.go('/new/30');
    },
    'click #popularBtn': function (e, template) {
        Router.go('/');
    }
});